--
-- (C) 2013 - ntop.org
--


dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path

require "lua_utils"
require "top_talkers"


-- #################################################

ifnames = interface.getIfNames()
num_ifaces = 0

for _,_ifname in pairs(ifnames) do
   ifname = purifyInterfaceName(_ifname)
   if(verbose) then print("[minute.lua] Processing interface " .. ifname) end
   -- Dump topTalkers every minute

   talkers = getActualTopAggregations(_ifname)
   print(talkers)

   --print(getTopTalkers(_ifname))
end



